-- GENERATED SPELL FOR [Tidal Surger] --


function spell0_21695(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(15531,pUnit)
pUnit:RegisterEvent('Sorts_21695', 8267, 1)
end

function spell1_21695(pUnit, Event) --@Water Spout,n/a--
pUnit:FullCastSpellOnTarget(37250,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21695', 548, 1)
end

function Sorts_21695(pUnit, Event)
local choix_sorts_21695 = math.random(0, 1)
if choix_sorts_21695 == 0 then
pUnit:RegisterEvent('spell0_21695', 1, 1)
end
if choix_sorts_21695 == 1 then
pUnit:RegisterEvent('spell1_21695', 1, 1)
end
end

function mob21695_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21695', math.random(1500, 3000), 1)
end

function mob21695_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21695_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21695_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21695, 1, 'mob21695_Action')
RegisterUnitEvent(21695, 2, 'mob21695_Leave')
RegisterUnitEvent(21695, 3, 'mob21695_Kill')
RegisterUnitEvent(21695, 4, 'mob21695_Die')
